package com.duo.utils;

import org.springframework.util.DigestUtils;

/**
 * @Author: Xrx
 * @Description:
 * @CreateTime: 2023/7/6 17:01
 */
public class Md5Utils {
    //加入一个盐值，用户混淆
    private final static String salt = "kdjbgsreigawnesadfqwthaergesaierjadsdvsaasefef";

    public static String getMd5(String password) {
        String base = password + "/" + salt;
        return DigestUtils.md5DigestAsHex(base.getBytes());
    }


}
